package cn.wh.beans.factory.support;

import cn.wh.beans.BeansException;
import cn.wh.core.io.Resource;
import cn.wh.core.io.ResourceLoader;

import java.io.FileNotFoundException;

/**
 * @Author wanghao
 * @Date 2022-08-24 22:55
 * @Description: xml解析 获取bean容器 资源加载
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException, FileNotFoundException, ClassNotFoundException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String[] location) throws BeansException;

}
